package com.erp.erp_entitys.BillClearInfo;

import com.erp.erp_entitys.business.entity.CarryDetailProductPartsEntity;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 清关产品配件明细表(BillExchangeProductParts)实体类
 *
 * @author cj
 * @since 2021-01-15 21:07:06
 */
public class BillClearProductParts implements Serializable {
    private static final long serialVersionUID = 514866200067332650L;
    /**
     * 主键
     */
    private Integer id;
    /**
     * 清关单据id
     */
    private Integer clearId;
    /**
     * 产品id
     */
    private Integer clearProductId;
    /**
     * 出运配件id
     */
    private Integer carryPartsId;
    /**
     * 规格编码
     */
    private String specCode;
    /**
     * 规格说明
     */
    private String specNo;
    /**
     * 产品编码
     */
    private String goodsCode;
    /**
     * 中文名称
     */
    private String goodsCname;
    /**
     * 英文名称
     */
    private String goodsEname;
    /**
     * 成品比例
     */
    private BigDecimal cpbl;
    /**
     * 配件比例
     */
    private BigDecimal pebl;
    /**
     * 配件数量
     */
    private BigDecimal goodsnumParts;
    /**
     * 本次清关数量
     */
    private BigDecimal lastAmount;
    /**
     * 毛重
     */
    private BigDecimal goodsGross;
    /**
     * 净重
     */
    private BigDecimal netWeight;
    /**
     * 体积
     */
    private BigDecimal bulk;
    /**
     * 采购单号
     */
    private String stockNo;
    /**
     * 成本单价
     */
    private BigDecimal costUnitPrice;
    /**
     * 成本小计
     */
    private BigDecimal costSubtotal;
    /**
     * 供应商编码
     */
    private String supplyerId;
    /**
     * 供应商名称
     */
    private String supplyerName;

    public BillClearProductParts() {
    }

    public BillClearProductParts(CarryDetailProductPartsEntity part){
        this.clearId=part.getCarryDetailId();
        this.clearProductId=part.getProductDetailId();
        this.carryPartsId=part.getId();
        this.specCode = part.getSpecNo();
        this.goodsCode = part.getPartsCode();
        this.goodsCname = part.getProductCname();
        this.goodsEname = part.getProductEname();
        this.goodsnumParts = part.getPartsAmount();
        this.cpbl=part.getProportionFinishedProducts();
        this.pebl=part.getPartsFinishedProducts();
        this.goodsGross = part.getGrossWeight();
        this.netWeight = part.getNetWeight();
        this.bulk = part.getBulk();
        this.stockNo = part.getContractPurchaseNumber();
        this.supplyerId = part.getSupplierId();
        this.supplyerName = part.getSupplierName();
        this.costSubtotal=part.getCostSubtotal();
        this.costUnitPrice=part.getCostUnitPrice();
    }

    public Integer getClearId() {
        return clearId;
    }

    public void setClearId(Integer clearId) {
        this.clearId = clearId;
    }

    public Integer getClearProductId() {
        return clearProductId;
    }

    public void setClearProductId(Integer clearProductId) {
        this.clearProductId = clearProductId;
    }

    public BigDecimal getLastAmount() {
        return lastAmount;
    }

    public BigDecimal getCostUnitPrice() {
        return costUnitPrice;
    }

    public void setCostUnitPrice(BigDecimal costUnitPrice) {
        this.costUnitPrice = costUnitPrice;
    }

    public BigDecimal getCostSubtotal() {
        return costSubtotal;
    }

    public void setCostSubtotal(BigDecimal costSubtotal) {
        this.costSubtotal = costSubtotal;
    }

    public void setLastAmount(BigDecimal lastAmount) {
        this.lastAmount = lastAmount;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getSpecCode() {
        return specCode;
    }

    public void setSpecCode(String specCode) {
        this.specCode = specCode;
    }

    public String getSpecNo() {
        return specNo;
    }

    public void setSpecNo(String specNo) {
        this.specNo = specNo;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public String getGoodsCname() {
        return goodsCname;
    }

    public void setGoodsCname(String goodsCname) {
        this.goodsCname = goodsCname;
    }

    public String getGoodsEname() {
        return goodsEname;
    }

    public void setGoodsEname(String goodsEname) {
        this.goodsEname = goodsEname;
    }

    public BigDecimal getCpbl() {
        return cpbl;
    }

    public void setCpbl(BigDecimal cpbl) {
        this.cpbl = cpbl;
    }

    public BigDecimal getPebl() {
        return pebl;
    }

    public void setPebl(BigDecimal pebl) {
        this.pebl = pebl;
    }

    public BigDecimal getGoodsnumParts() {
        return goodsnumParts;
    }

    public void setGoodsnumParts(BigDecimal goodsnumParts) {
        this.goodsnumParts = goodsnumParts;
    }

    public BigDecimal getGoodsGross() {
        return goodsGross;
    }

    public void setGoodsGross(BigDecimal goodsGross) {
        this.goodsGross = goodsGross;
    }

    public BigDecimal getNetWeight() {
        return netWeight;
    }

    public void setNetWeight(BigDecimal netWeight) {
        this.netWeight = netWeight;
    }

    public BigDecimal getBulk() {
        return bulk;
    }

    public void setBulk(BigDecimal bulk) {
        this.bulk = bulk;
    }

    public String getStockNo() {
        return stockNo;
    }

    public void setStockNo(String stockNo) {
        this.stockNo = stockNo;
    }

    public String getSupplyerId() {
        return supplyerId;
    }

    public void setSupplyerId(String supplyerId) {
        this.supplyerId = supplyerId;
    }

    public String getSupplyerName() {
        return supplyerName;
    }

    public void setSupplyerName(String supplyerName) {
        this.supplyerName = supplyerName;
    }

    public Integer getCarryPartsId() {
        return carryPartsId;
    }

    public void setCarryPartsId(Integer carryPartsId) {
        this.carryPartsId = carryPartsId;
    }
}